package com.college.statistics.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 网站统计日数据
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "statistics_daily")
public class StatisticsDaily {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private String id;

    /**
     * 统计日期
     */
    @TableField(value = "date_calculated")
    private String dateCalculated;

    /**
     * 注册人数
     */
    @TableField(value = "register_num")
    private Integer registerNum;

    /**
     * 登录人数
     */
    @TableField(value = "login_num")
    private Integer loginNum;

    /**
     * 每日播放视频数
     */
    @TableField(value = "video_view_num")
    private Integer videoViewNum;

    /**
     * 每日新增课程数
     */
    @TableField(value = "course_num")
    private Integer courseNum;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}